package com.darkness.rpc.framework.provider;

/**
 * @author darkness
 * @time 2022/4/15 14:48
 * @description
 */
public class Service {

    private String group;

    private String version;

    private Class<?> itfClass;

    private Class<?> implClass;

    public Service(){

    }

    public Service(String group, String version, Class<?> itfClass, Class<?> implClass) {
        this.group = group;
        this.version = version;
        this.itfClass = itfClass;
        this.implClass = implClass;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Class<?> getItfClass() {
        return itfClass;
    }

    public void setItfClass(Class<?> itfClass) {
        this.itfClass = itfClass;
    }

    public Class<?> getImplClass() {
        return implClass;
    }

    public void setImplClass(Class<?> implClass) {
        this.implClass = implClass;
    }

    @Override
    public String toString() {
        return "Service{" +
                "group='" + group + '\'' +
                ", version='" + version + '\'' +
                ", itfClass=" + itfClass +
                ", implClass=" + implClass +
                '}';
    }
}
